package com.zut.service;

import com.zut.domain.Recruitment;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface RecruitmentService {
    /**
     * 查询全部
     *
     * @return
     */
    List<Recruitment> getAll();


    /**
     * 保存
     *
     * @param pecruitment
     * @return
     */
    boolean insert(Recruitment pecruitment);

    /**
     * 根据id删除
     *
     * @param id
     * @return
     */
    boolean deleteById(String id);

    /**
     * 根据id进行修改
     *
     * @param pecruitment
     * @return
     */
    boolean update(Recruitment pecruitment);
}
